package user;

public abstract class User {
    public String name ;
    public int ID;
    public String role;

    public  User(String name,int ID,String role){
        this.name = name;
        this.ID = ID;
        this.role = role;
    }

    public User(String name, int ID) {
        this.name = name;
        this.ID = ID;
    }

    //get方法
    public String getName() {return name;}

    public int getID() {return ID;}

    public String getRole() {return role;}

    //set方法
    public void setName(String name) {this.name = name;}

    public void setID(int ID) {this.ID = ID;}

    public void setRole(String role) {this.role = role;}

    public abstract int display();

}
